<?php
/**
 * Created by PhpStorm.
 * User: 唐同广
 * Date: 2017/10/11
 * Time: 17:21
 */
namespace AppBundle\Service;

class DefaultService extends BaseService {
    public function get(){
        $query = $this->em->createQuery('SELECT p FROM CourseBundle:User p');

        $users= $query->getResult();

        return $users;
    }
}